/*
 * @Author: ischen.x ischen.x@foxmail.com
 * @Date: 2024-07-11 13:31:52
 * @LastEditors: ischen.x ischen.x@foxmail.com
 * @LastEditTime: 2024-07-30 16:35:40
 * 
 * Copyright (c) 2024 by fhchengz, All Rights Reserved. 
 */
#ifndef __LM75_H
#define __LM75_H

#include <stdint.h>

struct LM75_REG{
	uint16_t Temperature;
	uint8_t Configuration;
	uint16_t Thyst;
	uint16_t Tos;
};

int lm75_get_temp(float *temp);
int lm75_set_read_write_function(int(*read)(uint8_t,  uint8_t,  uint8_t *, uint8_t), int(*write)(uint8_t,  uint8_t,  uint8_t *, uint8_t));

#endif /* __LM75_H */
